home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / eiffel / smalleif.97 / se.t / SmallEiffel / lib_test / test_expanded1.e < prev    next >
Encoding:
Text File  |  1996-05-02  |  648 b   |  36 lines

  1. -- Part of SmallEiffel -- Read DISCLAIMER file -- Copyright (C) 
  2. -- Dominique COLNET and Suzanne COLLIN -- colnet@loria.fr
  3. --
  4. class TEST_EXPANDED1
  5.  
  6. creation {ANY}
  7.    make
  8.    
  9. feature {ANY}
  10.    
  11.    make is
  12.       local
  13.      e1, e2: EXPANDED1;
  14.       do
  15.      is_true(e1.x = 0);
  16.      is_true(e1 = e2);
  17.      e1.set_x(2);
  18.      is_true(e1.x = 2);
  19.       end;
  20.    
  21.    is_true(b: BOOLEAN) is
  22.       do
  23.      cpt := cpt + 1;
  24.      if not b then
  25.         std_output.put_string("TEST_EXPANDED1: ERROR Test # ");
  26.         std_output.put_integer(cpt);
  27.         std_output.put_string("%N");
  28.      else
  29.         -- std_output.put_string("Yes%N");
  30.      end;
  31.       end;
  32.    
  33.    cpt: INTEGER;
  34.    
  35. end -- TEST_EXPANDED1
  36.